package com.tasks.positions;

import com.tasks.positions.domain.TradeEvent;

/**
 *  The position rule should be applied to each trade to calculate the position quantity.
 */
public interface PositioningRule {
	/**
	 * Applies the rule to the trade and returns trade's quantity.
	 * 
	 * @param trade the incoming trade event.
	 * @return the trade event quantity.
	 */
	public int getQuantity(TradeEvent trade);
}
